<!--
 * @Description:  伸缩盒布局
 * @Author: rendc
 * @Date: 2021-07-11 09:06:55
 * @LastEditors: rendc
 * @LastEditTime: 2021-07-11 09:10:27
-->
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>伸缩盒布局</title>
  <style>
    .main {
      display: flex;
    }

    .main div {
      height: 200px;
      border: 1px solid salmon;
    }

    .one {
      flex: 2;
    }

    .two {
      flex: 2;
    }

    .three {
      flex: 1;
    }
  </style>
</head>

<body>
  <div class="main">
    <div class="one"></div>
    <div class="two"></div>
    <div class="three"></div>
  </div>
</body>

</html>